package com.hrvsr.downloader.httpclient.session;

import java.util.Date;

import com.hrvsr.session.cookie.Cookie;

public class CookieAdapter implements Cookie {
	private static final long serialVersionUID = 301L;

	private org.apache.http.cookie.Cookie cookie;

	public CookieAdapter(org.apache.http.cookie.Cookie cookie) {
		this.cookie = cookie;
	}

	@Override
	public String getName() {
		return cookie.getName();
	}

	@Override
	public String getValue() {
		return cookie.getValue();
	}

	@Override
	public String getDomain() {
		return cookie.getDomain();
	}

	@Override
	public String getPath() {
		return cookie.getPath();
	}

	@Override
	public Date getExpiryDate() {
		return cookie.getExpiryDate();
	}

}
